/* App.vue 样式 */
body {
  margin: 0;
}

.sidebar-header {
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 20px;
  transition: all 0.3s;
}

.el-menu-item {
  justify-content: flex-start;
}

.el-menu-vertical-demo:not(.el-menu--collapse) {
  width: 200px;
  min-height: 100%;
}

.el-menu-vertical-demo.el-menu--collapse {
  width: 64px;
}

/* 收起状态下菜单项居中 */
.el-menu--collapse .el-menu-item {
  justify-content: center;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  padding: 0 20px;
}

.page-title {
  margin-left: 15px;
  font-size: 16px;
  font-weight: 500;
  color: #97A8BE;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .el-aside {
    position: fixed !important;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
  }
  
  .el-main {
    margin-left: 64px;
    transition: margin-left 0.3s;
  }
}

/* 侧边栏收起时的图标样式 */
.el-menu--collapse .sidebar-header {
  padding: 15px 10px;
}

.el-menu--collapse .el-menu-item {
  padding: 0 20px;
}

/* 过渡动画 */
.el-aside {
  transition: width 0.3s ease;
}